/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tcc.sglj.dao;

import org.hibernate.Session;

import tcc.sglj.util.HibernateUtil;
import tcc.sglj.model.TypePhone;

/**
 *
 * @author jhonatan L S Santos
 */
public class DaoPhone {

    public static TypePhone getTypePhoneById(int id) {
        Session session = HibernateUtil.getSession();

        TypePhone type = (TypePhone) session.load(TypePhone.class, id);
  
        if (type == null) {
            return null;
        }
        return type;
    }
}
